package com.fr.chart.plot;

import com.fr.base.xml.XMLPrintWriter;
import com.fr.base.xml.XMLableReader;
import com.fr.chart.core.glyph.AreaCategoryAxisGlyph;
import com.fr.chart.core.glyph.AreaPlotGlyph;
import com.fr.chart.core.glyph.CategoryAxisGlyph;
import com.fr.chart.core.glyph.PlotGlyph;
import com.fr.data.ChartData;

public class AreaPlot extends CategoryPlot
{
  private static final long serialVersionUID = -6892583553529732086L;

  public CategoryAxisGlyph createCategoryAxisGlyph()
  {
    return new AreaCategoryAxisGlyph(this.categoryAxis);
  }

  public PlotGlyph createPlotGlyph(ChartData paramChartData)
  {
    AreaPlotGlyph localAreaPlotGlyph = new AreaPlotGlyph();
    install4PlotGlyph(localAreaPlotGlyph, paramChartData);
    installAxisGlyph(localAreaPlotGlyph, paramChartData);
    return localAreaPlotGlyph;
  }

  public void install4PlotGlyph(AreaPlotGlyph paramAreaPlotGlyph, ChartData paramChartData)
  {
    super.install4PlotGlyph(paramAreaPlotGlyph, paramChartData);
  }

  public void readXML(XMLableReader paramXMLableReader)
  {
    super.readXML(paramXMLableReader);
  }

  public void writeXML(XMLPrintWriter paramXMLPrintWriter)
  {
    paramXMLPrintWriter.startTAG("Plot");
    super.writeXML(paramXMLPrintWriter);
    paramXMLPrintWriter.end();
  }

  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof AreaPlot))
      return false;
    AreaPlot localAreaPlot = (AreaPlot)paramObject;
    return (super.equals(localAreaPlot));
  }
}